package cn.tedu.hou;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean
    public GoldenCudgel cudgel1(){
        return new GoldenCudgel();
    }
    @Bean
    public GoldenCudgel cudgel2(){
        return new GoldenCudgel();
    }

    @Bean
    public Kong kong(GoldenCudgel cudgel2){
        Kong k=new Kong();
        k.setGoldenCudgel(cudgel2);
        return k;
    }









}
